package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDto;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    @PostMapping("/api/v1/user/save")
    ResponseResult saveUser(@RequestBody WmUserDto dto);

    /**
     * 获取频道列表
     * @return
     */
    @GetMapping("/api/v1/channel/list")
    ResponseResult getChannels();

}
